using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;

namespace Entities.DataBase.Persistent.Jso {
    
    [DataContract]
    public class CustomerProfile {

        [DataMember]
        [JsonProperty(PropertyName = "CUSTOMER_ID")]
        public string CustomerId;

        [DataMember]
        [JsonProperty(PropertyName = "DateBirth")]
        public DateTime DateBirth { get; set; }

        [DataMember]
        [JsonProperty(PropertyName = "IdImage")]
        public IDImage IdImage { get; set; }

        [DataMember]
        [JsonProperty(PropertyName = "Babies")]
        public List<BabyDetail> Babies { get; set; }

        public CustomerProfile() {
            IdImage = new IDImage();
            Babies  = new List<BabyDetail>();
        }

    }

    [DataContract]
    public class BabyDetail {

        [DataMember]
        [JsonProperty(PropertyName = "DateBirth")]
        public DateTime DateBirth { get; set; }

        [DataMember]
        [JsonProperty(PropertyName = "Name")]
        public string Name { get; set; }

        [DataMember]
        [JsonProperty(PropertyName = "CName")]
        public string CName { get; set; }

    }

    [DataContract]
    public class IDImage {

        [DataMember]
        [JsonProperty(PropertyName = "FRONT_PATH")]
        public string FrontPath;

        [DataMember]
        [JsonProperty(PropertyName = "BACK_PATH")]
        public string BackPath;

    }
}